package com.guanjia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guanjia.entity.CreditInformation;
import com.guanjia.entity.Repayment;
import com.guanjia.entity.vo.CreditInformationVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface BorrowMapper extends BaseMapper<CreditInformation> {
    List<CreditInformationVo> selectListByUserId(Integer id);

    //总借贷金额(包括已经结束的）
    Integer sumBalanceByUserId(Integer id);

    //每月还款 金额
    Integer  sumMonthBalanceByUserId(Integer id);

    List<CreditInformation> newList();

    Integer findcountById(Integer id);

    Integer findacessById(Integer id);

    Double sumBorrowMoney(Integer id);

    List<Repayment> findRepay(Integer id);

    Integer repaycount(Integer id);

}
